"
I am an abstract error that can be thrown by a command.

I hold the command that generated myself in my #command inst. var.

One can create an instance of myself like this:
[[[
LtCommandError command: LtCommand new
]]]

One can create an instance of myself and directly signal it like this:
[[[
LtCommandError signalCommand: LtCommand new
]]]
"
Class {
	#name : 'CmCommandError',
	#superclass : 'Error',
	#instVars : [
		'command'
	],
	#category : 'Commander2-Errors',
	#package : 'Commander2',
	#tag : 'Errors'
}

{ #category : 'instance creation' }
CmCommandError class >> command: aCmSpecCommand [
	^ self new
		command: aCmSpecCommand;
		yourself
]

{ #category : 'signalling' }
CmCommandError class >> signalCommand: aCmSpecCommand [
	(self command: aCmSpecCommand) signal
]

{ #category : 'accessing' }
CmCommandError >> command [
	^ command
]

{ #category : 'accessing' }
CmCommandError >> command: aCmSpecCommand [
	command := aCmSpecCommand
]
